@import './less/app.less';

body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, li, a, p, h1, h2, h3, h4, h5, h6, i, b, textarea, button, input, select, figure, figcaption {
    padding: 0;
    margin: 0;
    list-style: none;
    font-style: normal;
    text-decoration: none;
    color: #333;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    &:focus {
        outline: none;
    }
}

img {
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: both;
    display: block;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    .size(0);
    background-color: @color_default_bg;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
    border-radius: 10px;
    background-color: @color_default_bg;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #555;
}

input[type="button"],
input[type="submit"],
input[type="search"],
input[type="reset"],
textarea {
    -webkit-appearance: none;
}

html, body {
    background-color: @color_default_bg;
    overflow-x: hidden;
    overflow-y: auto;
    .size(100%,100%);
}

body{
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
}
.app{
    .size(100%,100%);
    position: relative;
    z-index: 2;
    transform: translate3d(0,0,0);
    transition: transform 400ms ease;
    box-shadow: 0 0 4px rgba(0,0,0,.4);
}

.app-page {
    .size(100%,100%);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: #FFF;
    justify-content: center;
    align-items: flex-start;
}

.app-header, .app-footer {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    z-index: 11;
}

.app-header {
    top: 0;
}

.app-footer {
    bottom: 0;
}

.app-content {
    width: 100%;
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background-color: #eaeaea;
    &::-webkit-scrollbar {
        display: none !important;
        -webkit-appearance: none;
        opacity: 0 !important;
        .size(0,0);
    }
}

.app-header+.app-content {
    padding-top: @height_app_header;
}

/* animation */
.fadeIn {
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.router-fade-enter-active, .router-fade-leave-active {
    transition: opacity .7s;
}

.router-fade-enter, .router-fade-leave-active {
    opacity: 0;
}

.circle {
    animation: circle 0.5s infinite linear;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    &.row-warp {
        flex-wrap: wrap !important;
    }
    >.col {
        flex: 1;
        box-flex: 1;
        &.col-2 {
            width: 50%;
        }
        &.col-3 {
            width: 33.33333%;
        }
    }
}
